#include <iostream>
#include <memory>

using namespace std;

void before() {
    uint8_t *a = new uint8_t[10];
    double *b = new double(1.2);
    if (xxx) {
        delete[] a;
        delete b;
        return;
    }
    if (xxx) {
        delete[] a;
        delete b;
        return;
    }
    delete[] a;
    delete b;
}

void after() {
    unique_ptr<uint8_t[]> a(new uint8_t[10]);
    unique_ptr<double> b(new double(1.2));
    if (xxx) {
        return;
    }
    if (xxx) {
        return;
    }
}